#!/bin/bash
#PBS -l nodes=4:ppn=8 
#PBS -N diffusion
#PBS -o $JOB_ID.err
#PBS -l walltime=00:05:00
#PBS -e errors.txt
#PBS -o output.txt
module purge 
module load mvapich/1.1-gnu 
#module load mvapich2/1.6-gnu 
#module load mvapich2

cd /home/bfakhri/cse-494-hpc-2/proj2/milestone2/mpeProfiling/
pwd
export KMP_AFFINITY=norespect,scatter
export OMP_NUM_THREADS=8
#(time mpirun -pernode ./execDiffuseSmooth 8000 2.0 100) 2> smoothTime.txt 1> smoothOutput.txt
(time mpiexec -pernode ./execDiffuseRough 8000 2.0 100) 2> roughTime.txt 1> roughOutput.txt
